import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

export default new Vuex.Store({
    state: {
        user: {
            userCode: '0000',
            nickname: 'Jam'
        }

    },
    mutations: {
        setUser: function (state, user) {
          //  state.user.userCode = userCode;
            state.user=user;
        }
    },
    actions: {}
})
